var SysMenu = cc.Layer.extend({
    init:function() {
        var bRet = false;
        if (this._super()) {
            var winSize = cc.Director.getInstance().getWinSize();
            var bg = cc.Sprite.create(res.bg);
            bg.setAnchorPoint(0, 0);
            this.addChild(bg);

            bRet = true;
        }
        return bRet;
    }
});

SysMenu.create = function() {
    var sg = new SysMenu();
    if (sg && sg.init()) {
        return sg;
    }
    return null;
};

SysMenu.scene = function() {
    var scene = cc.Scene.create();
    var layer = SysMenu.create();
    scene.addChild(layer);
    return scene;
};

